package org.west.sky.scripture.exports.core;

import lombok.Getter;

/**
 * author: chz
 * date: 2025/5/7
 * description: 动态表头配置
 */
@Getter
public class ExcelHeadDTO {

    /**
     * 表头名称
     */
    private final String headName;
    /**
     * 数据格式
     */
    private final ExcelHeadStyle style;
    /**
     * 小数点位
     */
    private final int scale;

    public ExcelHeadDTO(String headName) {
        this(headName, ExcelHeadStyle.TEXT, 0);
    }

    public ExcelHeadDTO(String headName, ExcelHeadStyle style, int scale) {
        this.headName = headName;
        this.style = style;
        this.scale = scale;
    }

    public enum ExcelHeadStyle {
        TEXT,
        NUMBER
    }
}
